package threaddemo6;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 19:12
 */
//线程休眠
public class ThreadSleep implements Runnable{
    @Override
    public void run() {
        for(int i=0;i<100;i++){
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+"-----"+i);
        }
        
    }
}
